/**
 *
 */
package dk.simonvogensen.itodo.client.view;

import com.google.gwt.user.client.ui.Panel;
import dk.simonvogensen.itodo.client.controller.Controller;

/**
 * @author sbv
 */
public interface ITodoView {
    void showAlert(String text);

    void updateView();

    String getSelectedTodoItemText();

    int getLineOfCursor();

    int getLineCount();

    void updateButtonStates(boolean enabled, boolean enablePreviousButton, boolean enableSaveButton, boolean enableDeleteButton);

    void unfocus();

    Panel getMainPanel();

    void init();

    void setController(Controller controller);

    void refreshAxedArea();

    boolean hasOpenDialogs();

    void closeDialogs();

    void setAxedAreaFocus(boolean focus);

    void openWorktimeDialog();

    void openConfigDialog();

    void updateProjectIdsAndTransportTypes();
}
